<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class MemberWallet extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('member_wallet',function(Blueprint $table){
            $table->id();
            $table->bigInteger('member_id')->default(0)->comment('用户主键');
            $table->integer('integral')->default(0.0000)->comment('积分');
            $table->decimal('balance',20,4)->default(0.0000)->comment('余额');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
